package com.easyjava.builder;

import com.easyjava.bean.Constants;
import com.easyjava.utils.DateUtils;

import java.io.BufferedWriter;
import java.util.Date;


public class BuildComment {
    /**
     * �����ಢע��
     */
    public static void createClassComment(BufferedWriter bw,String classComment) throws Exception{

        bw.write("/**");
        bw.newLine();
        bw.write(" * @Description:" + classComment);
        bw.newLine();
        bw.write(" * ");
        bw.newLine();
        bw.write(" * @auther:" + Constants.AUTHER_COMMENT);
        bw.newLine();
        bw.write(" * @data:" + DateUtils.format(new Date(),DateUtils._YYYYMMDD));
        bw.newLine();
        bw.write("*/");
        bw.newLine();
    }

    /**
     * �����ֶ�ע��
     */
    public static void createFieldComment(BufferedWriter bw,String fieldComment) throws Exception{
        bw.write("\t/**");
        bw.newLine();
        bw.write("\t * " + (fieldComment==null?"":fieldComment));
        bw.newLine();
        bw.write("\t */");
        bw.newLine();
    }

    /**
     * ��������ע��
     */
    public static void createMethodComment(){

    }
}
